<?php

namespace Kanin\Games\traits;

trait ResponseTrait {

	public function responseJson($cmd, $data = [], $msg = 'ok') {
		return json_encode(['cmd' => $cmd, 'data' => $data, 'msg' => $msg]);
	}
}